// vite.config.js
import { defineConfig } from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/unplugin-vue-components/dist/resolvers.js";
import path from "path";
import postcsspxtoviewport from "file:///C:/Users/Lin_X/Desktop/gitee/vue/Store/node_modules/postcss-px-to-viewport/index.js";
var __vite_injected_original_dirname = "C:\\Users\\Lin_X\\Desktop\\gitee\\vue\\Store";
var vite_config_default = defineConfig({
  server: {
    open: true,
    // 自动浏览
    port: 1994,
    // 更改服务端口
    // https: true,
    proxy: {
      "/api": {
        target: "https://django.starbucket.xyz",
        changeOrigin: true,
        //必须要开启跨域
        secure: true,
        rewrite: (path2) => path2.replace(/\/api/, "")
        // 路径重写
      }
      // "/api": {
      //   target: "http://127.0.0.1:8000",
      //   changeOrigin: true, //必须要开启跨域
      //   secure: true,
      //   rewrite: (path) => path.replace(/\/api/, ""), // 路径重写
      // },
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src")
    }
  },
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  // 网页大小自适应
  css: {
    postcss: {
      plugins: [
        postcsspxtoviewport({
          // 要转化的单位
          unitToConvert: "px",
          // UI设计稿的大小
          viewportWidth: 1920,
          //根据设计稿宽度除以10进行设置
          rootValue: 192,
          // 转换后的精度
          unitPrecision: 6,
          // 转换后的单位
          viewportUnit: "vw",
          // 字体转换后的单位
          fontViewportUnit: "vw",
          // 能转换的属性，*表示所有属性，!border表示border不转
          propList: ["*"],
          // 指定不转换为视窗单位的类名，
          selectorBlackList: ["ignore-"],
          // 最小转换的值，小于等于1不转
          minPixelValue: 1,
          // 是否在媒体查询的css代码中也进行转换，默认false
          mediaQuery: true,
          // 是否转换后直接更换属性值
          replace: true,
          // 忽略某些文件夹下的文件或特定文件，例如 'node_modules' 下的文件
          exclude: [],
          // 包含那些文件或者特定文件
          include: [],
          // 是否处理横屏情况
          landscape: false
        })
      ]
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxMaW5fWFxcXFxEZXNrdG9wXFxcXGdpdGVlXFxcXHZ1ZVxcXFxTdG9yZVwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcTGluX1hcXFxcRGVza3RvcFxcXFxnaXRlZVxcXFx2dWVcXFxcU3RvcmVcXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzL0xpbl9YL0Rlc2t0b3AvZ2l0ZWUvdnVlL1N0b3JlL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJ1xuaW1wb3J0IEF1dG9JbXBvcnQgZnJvbSAndW5wbHVnaW4tYXV0by1pbXBvcnQvdml0ZSdcbmltcG9ydCBDb21wb25lbnRzIGZyb20gJ3VucGx1Z2luL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